package com.atguigu.tingshu.account.impl;


import com.atguigu.tingshu.account.AccountFeignClient;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.account.RechargeInfo;
import com.atguigu.tingshu.vo.account.AccountDeductVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class AccountDegradeFeignClient implements AccountFeignClient {


    /**
     * 扣减账户余额
     *
     * @param accountDeductVo
     * @return
     */
    @Override
    public Result checkAndDeduct(AccountDeductVo accountDeductVo) {
        log.error("【用户服务】提供checkAndDeduct远程调用失败");
        return null;
    }


    /**
     * 根据充值订单编号查询充值信息
     * @param orderNo
     * @return
     */
    @Override
    public Result<RechargeInfo> getRechargeInfo(String orderNo) {
        log.error("[账户服务]提供远程调用接口getRechargeInfo服务降级");
        return null;
    }



    /**
     * 用户付款成功后进行余额充值业务
     * @param orderNo
     * @return
     */
    @Override
    public Result rechargePaySuccess(String orderNo) {
        log.error("账户服务，提供远程调用rechargePaySuccess执行服务降级");
        return null;
    }
}
